#include "openssl/evp.h"
#include "hashlib.h"
#include <sstream>
#include <vector>
#include <iostream>
extern "C"
{
	ICompress * createCompress()
	{
		hashlib::HashLib* phashlib = new hashlib::HashLib(type);
		if (phashlib == nullptr)
		{
			return phashlib;
		}

		if (!phashlib->init())
		{
			delete  phashlib;
			return nullptr;
		}
		return phashlib;
	}

	void releaseCompress(ICompress *p)
	{
		delete p;
	}
}

namespace compress {

};

